/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;
using JDCloudSDK.Charge.Model;

namespace JDCloudSDK.Clickhouse.Model
{

    /// <summary>
    ///  clickhouseInstanceSpec
    /// </summary>
    public class ClickhouseInstanceSpec
    {

        ///<summary>
        /// 实例名
        ///Required:true
        ///</summary>
        [Required]
        public string InstanceName{ get; set; }
        ///<summary>
        /// Clickhouse引擎版本
        ///</summary>
        public string EngineVersion{ get; set; }
        ///<summary>
        /// 实例规格
        ///Required:true
        ///</summary>
        [Required]
        public string ChNodeClass{ get; set; }
        ///<summary>
        /// 实例副本数
        ///Required:true
        ///</summary>
        [Required]
        public int ReplicaNum{ get; set; }
        ///<summary>
        /// 实例分片数
        ///Required:true
        ///</summary>
        [Required]
        public int ShardNum{ get; set; }
        ///<summary>
        /// 存储空间，单位GB
        ///Required:true
        ///</summary>
        [Required]
        public int ChNodeStorageGB{ get; set; }
        ///<summary>
        /// 存储空间类型
        ///</summary>
        public string ChNodeStorageType{ get; set; }
        ///<summary>
        /// ZooKeeper单个节点的规格代码
        ///Required:true
        ///</summary>
        [Required]
        public string ZkNodeClass{ get; set; }
        ///<summary>
        /// Monitor单个节点的规格代码
        ///Required:true
        ///</summary>
        [Required]
        public string MonitorNodeClass{ get; set; }
        ///<summary>
        /// ZooKeeper节点数目
        ///Required:true
        ///</summary>
        [Required]
        public int ZkNodeNum{ get; set; }
        ///<summary>
        /// 可用区ID，目前仅支持单可用区部署
        ///Required:true
        ///</summary>
        [Required]
        public List<string> AzId{ get; set; }
        ///<summary>
        /// VPC的ID
        ///Required:true
        ///</summary>
        [Required]
        public string VpcId{ get; set; }
        ///<summary>
        /// 子网ID
        ///Required:true
        ///</summary>
        [Required]
        public string SubnetId{ get; set; }
        ///<summary>
        /// 存储空间，单位GB
        ///Required:true
        ///</summary>
        [Required]
        public int ZkNodeStorageGB{ get; set; }
        ///<summary>
        /// 存储空间，单位GB
        ///Required:true
        ///</summary>
        [Required]
        public int MonitorNodeStorageGB{ get; set; }
        ///<summary>
        /// 计费规格，包括计费类型，计费周期等
        ///Required:true
        ///</summary>
        [Required]
        public ChargeSpec ChargeSpec{ get; set; }
        ///<summary>
        /// 标签信息
        ///</summary>
        public List<Tag> TagSpec{ get; set; }
    }
}
